package project.menu.garagemenu;

import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;
import controllers.IAutoservice;

public class NextFreeDate implements IMenuItem {
	private String name = "Get Next Free Date";
	private final Integer id = 3;
	private static IMenu submenu;	
	private Navigator n;
	
	public NextFreeDate(){
		n=Navigator.getInstance();
	}

	
	public static void setSubmenu(IMenu menu){
		 submenu=menu;
	}
	
	
	public void action(IAutoservice aut) {
		aut.getNextFreeDate();
		n.drawMenu(submenu);
	}

	
	public String getNameItem() {
		return name;
	}

	
	public Integer getId(){
		return id;
	}

}
